package com.jielihaofeng.site.category.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.jielihaofeng.framework.common.utils.DateUtils;
import com.jielihaofeng.framework.common.utils.TreeNode;

import java.util.Date;

/**
* 分类管理
*
* @author 借力好风 949394048@qq.com
* @since 1.0.0 2022-07-21
*/
@Data
@Schema(description = "分类管理")
public class CategoryVO extends TreeNode<CategoryVO> {

	@Schema(description = "分类名称")
	private String name;

	@Schema(description = "类型 0：文章 1：相册")
	private Integer type;

	@Schema(description = "排序")
	private Integer sort;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date createTime;

	@Schema(description = "上级名称")
	private String parentName;
}